package cn.com.dycc.task_manage.ordermain.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import cn.com.dycc.task_manage.ordermain.entity.ResultOrderMain;
import cn.com.dycc.task_manage.ordermain.entity.UserOrderEntity;
import cn.com.dycc.task_manage.ordermain.param.FindAllParam;
import cn.com.dycc.task_manage.ordermain.param.SendingListsParam;

/**
 * 工单发送业务接口层
 * @author Administrator
 *
 */
public interface OrderMainService {
	
	/**
	 * 发送工单任务
	 * @param request
	 * @param sendingListsParam
	 * @return
	 * @throws NotFoundOrderMainException
	 */
	public String sendOrderMain(HttpServletRequest request,SendingListsParam sendingListsParam)throws NotFoundOrderMainException;
	
	/**
	 * 根据order_id查询工单主表信息
	 * @param order_id
	 * @return
	 * @throws NotFoundOrderMainException
	 */
	public UserOrderEntity findUserOrderByOrderId(HttpServletRequest request,String order_id)throws NotFoundOrderMainException;
	
	/**
	 * 根据登录用户查询所有自己发送的工单
	 * @param request
	 * @return
	 * @throws NotFoundOrderMainException
	 */
	public List<ResultOrderMain> findAll(HttpServletRequest request,FindAllParam findAllParam,String status)throws NotFoundOrderMainException;
	
	/**
	 * 根据登录用户查询所有自己发送的工单 统计
	 * @param request
	 * @return
	 * @throws NotFoundOrderMainException
	 */
	public String findAllCount(HttpServletRequest request,String status,String order_title)throws NotFoundOrderMainException;
	

}
